﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CategoriesEdit.ascx.cs" Inherits="RealState.W.AdminControl.CategoriesEdit" %>
<%@ Register Assembly="ASTreeView" Namespace="Geekees.Common.Controls" TagPrefix="ct" %>

<div class="grid_12">
    <div class="box">
        <h2>
         Sửa danh mục
        </h2>
        <div class="block">
            <div class="block_in"><div id="success" runat="server" visible="false" class="alert succes_msg"><strong>Succes: </strong> Thêm mới thành công </div></div>
            
            
            <div class="form_place">
                <section class="form_row">
                    <div class="grid_2">
                        <label>Tên danh mục:</label>
                    </div>
                    <div class="grid_10">
                        <div class="block_content">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
                            <asp:TextBox ID="txtTitle" Width="400px" runat="server"></asp:TextBox>
                            </ContentTemplate> </asp:UpdatePanel>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ErrorMessage="(*) Tên danh mục không được để trống" Display="Dynamic"
                                ControlToValidate="txtTitle" SetFocusOnError="True"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="clear"></div>
                </section>
                
<%--                 <section class="form_row">
                    <div class="grid_2">
                        <label>Nhóm:</label>
                    </div>
                    <div class="grid_10">
                        <div class="block_content">
                        <asp:UpdatePanel ID="UpdatePanel4" runat="server"><ContentTemplate>
                            <asp:DropDownList ID="drdGroups" runat="server">
                                </asp:DropDownList>
                                </ContentTemplate> </asp:UpdatePanel>
                        </div>
                    </div>
                    <div class="clear"></div>
                </section>--%>
                
                <section class="form_row">
                    <div class="grid_2">
                        <label>Thuộc danh mục:</label>
                    </div>
                    <div class="grid_10">
                        <div class="block_content">
                  <asp:UpdatePanel ID="UpdatePanel5" runat="server"><ContentTemplate>
                     <ct:ASTreeView runat="server" ID="MainMenu"
                     
                       AutoPostBack="True" BasePath="~/AdminPanel/plugins/astree/astreeview/" EnableCheckbox="False" 
                       EnableRoot="true" 
                       ImgCheckboxChecked="~/AdminPanel/plugins/astree/astreeview/images/astreeview-checkbox-checked.gif" 
                       ImgCheckboxHalfChecked="~/AdminPanel/plugins/astree/astreeview/images/astreeview-checkbox-half-checked.gif" 
                    
                       ImgCheckboxUnchecked="~/AdminPanel/plugins/astree/astreeview/images/astreeview-checkbox-unchecked.gif" 
                       EnableContextMenu="false" EnableTheme="False" 
                       EnableCustomizedNodeIcon="True" 
                       EnableOnNodeDragAndDropCompletingScriptReturn="false"  />
                        </ContentTemplate> </asp:UpdatePanel>
                    </div>
                    </div>
                    <div class="clear"></div>
                </section>
                
                <section class="form_row">
                    <div class="grid_2">
                        <label>Vị trí :</label>
                    </div>
                    <div class="grid_10">
                        <div class="block_content">
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server"><ContentTemplate>
                            <asp:DropDownList ID="DropDownList1" runat="server">
                            <asp:ListItem Value="1" Selected="True">Header</asp:ListItem>
                            <asp:ListItem Value="2">Footer</asp:ListItem>
                                </asp:DropDownList>
                                </ContentTemplate> </asp:UpdatePanel>
                        </div>
                    </div>
                    <div class="clear"></div>
                </section>
                
                <section class="form_row">
                    <div class="grid_2">
                        <label>Hiển thị :</label>
                    </div>
                    <div class="grid_10">
                        <div class="block_content">
                             <asp:CheckBox ID="cbEnableClick" runat="server" />
                        </div>
                    </div>
                    <div class="clear"></div>
                </section>
                
                <section class="form_row">
                    <div class="grid_2">
                        <label>Gỡ bỏ :</label>
                    </div>
                    <div class="grid_10">
                        <div class="block_content">
                            <asp:CheckBox ID="cbRemoveClick" runat="server" />
                        </div>
                    </div>
                    <div class="clear"></div>
                </section>


                <section class="form_row">
                    <div class="grid_10">
                        <div class="block_content">
                            <div class="grid_2"></div>
                            <asp:Button CssClass="button blue medium" ID="btnSubmit" runat="server" 
                                                    Text="Xác nhận" onclick="btnSubmit_Click" >
                            </asp:Button>
                        </div>
                    </div>
                    <div class="clear"></div>
                </section>
            </div>
        </div>
    </div>
</div>